package one;

import com.test.springboot.dao.StudentMapper;
import com.test.springboot.dao.pojo.Student;

import javax.annotation.Resource;

public class MathOptionImpl implements MathOption{

	@Override
	public int add(int i, int j) {
		int result = i + j;
		return result;
	}

	@Override
	public int sub(int i, int j) {
		int result = i - j;
		return result;
	}
	@Resource
	private StudentMapper studentMapper;
	@Override
	public int addStudent(Student student) {
		//studentMapper.insetStudent(student);
		return 1;
	}

}
